From: Karel Klíc Date: Sat, 11 Dec 2010 02:48:23 +0000 (-0800) Subject: * lisp/files.el (auto-mode-alist): Use html-mode for *.xhtml. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5411 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=61670c9d5b85fc6c826d1b6bc4a532bfbd1cce13;p=emacs.git * lisp/files.el (auto-mode-alist): Use html-mode for *.xhtml. (This really only affects empty files.) --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 93dcc72214e..afa7b5114a5 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-12-11 Karel Klíč + + * files.el (auto-mode-alist): Use html-mode for *.xhtml. (Bug#7606) + 2010-12-10 Stefan Monnier Derive from prog-mode, use derived-mode-p, and fix up various diff --git a/lisp/files.el b/lisp/files.el index 09e2a4e0725..460b005b9ef 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2232,7 +2232,7 @@ since only a single case-insensitive search through the alist is made." (lambda (elt) (cons (purecopy (car elt)) (cdr elt))) `(;; do this first, so that .html.pl is Polish html, not Perl - ("\\.s?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode) + ("\\.[sx]?html?\\(\\.[a-zA-Z_]+\\)?\\'" . html-mode) ("\\.svgz?\\'" . image-mode) ("\\.svgz?\\'" . xml-mode) ("\\.x[bp]m\\'" . image-mode)